﻿//03.Write a program that finds the biggest of three
//integers using nested if statements.

using System;

namespace BiggestInt
{
    class BiggestInt
    {
        static void Main()
        {
            Console.Write("Please enter the first number: ");
            int a = int.Parse(Console.ReadLine());
            Console.Write("Please enter the second number: ");
            int b = int.Parse(Console.ReadLine());
            Console.Write("Please enter the third number: ");
            int c = int.Parse(Console.ReadLine());

            if (a == b && b == c)
            {
                Console.WriteLine("All numbers are equal.");
            }
            else if (a > b && a > c)
            {
                Console.WriteLine("The biggest number is {0}.", a);
            }
            else if (b > a && b > c)
            {
                Console.WriteLine("The biggest number is {0}.", b);
            }
            else
            {
                Console.WriteLine("The biggest number is {0}.", c);
            }
        }
    }
}
